package word2;
class myThread extends Thread {
    @Override
    public void run() {
        System.out.println("继承Thread，重写run");
    }
}
public class Func1 {
    public static void main(String[] args) {
        Thread t = new myThread();
        t.start();
    }
}
